package threadTest.synchronizedTest;

import java.util.List;

/**
 * 功能描述: 消费者
 * 2024/02/21
 * <p>
 * ZhangYi
 */
public class ConsumerChicken {

    private DataContainer dataContainer;

    public ConsumerChicken(DataContainer dataContainer) {
        this.dataContainer = dataContainer;
    }

    public synchronized void consume() throws InterruptedException {
        dataContainer.consume();
    }
}
